# -*- coding: utf-8 -*-
# @Time    : 2021/9/14 14:49
# @Author  : BrandonGT
# @FileName: 7_10_dream_computer.py

computer_rig = {}
poll_active = True

while poll_active:
    prompt_name = "What is your name: "
    prompt_cpu = "What is your CPU: "
    prompt_gpu = "What is your GPU: "
    prompt_continue = "Would you like to let another person respond? (yes/no): "

    name = input(prompt_name)
    cpu = input(prompt_cpu)
    gpu = input(prompt_gpu)
    is_continue = input(prompt_continue)

    computer_rig[name] = f"{cpu} + {gpu}"

    if is_continue != "yes":
        poll_active = False

print("\n--- Poll Result ---")
for name, rig in computer_rig.items():
    print(f"{name}'s computer rig is '{rig}'")

